//
//  PayPreCell.m
//  Lead
//
//  Created by shouhan on 2018/8/31.
//  Copyright © 2018年 陈永发. All rights reserved.
//

#import "PayPreCell.h"

@interface PayPreCell()
@property (weak, nonatomic) IBOutlet UILabel *amountLabel;

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UILabel *timeLabel;


@end

@implementation PayPreCell

- (void)setPayModel:(ShareProfitModel *)payModel{
    _payModel = payModel;
    
    
    self.titleLabel.text = payModel.memo;
    self.timeLabel.text = payModel.time;
    
    self.amountLabel.text = [NSString stringWithFormat:@"%.2f",payModel.amount];
}


- (void)setPreModel:(PreModel *)preModel{
    _preModel = preModel;
    NSString * accNo = [preModel.accNo substringFromIndex:preModel.accNo.length - 4];
    
    self.titleLabel.text = [NSString stringWithFormat:@"提现到%@(%@)",preModel.bankName,accNo];
    self.timeLabel.text = preModel.applyDate;
    self.amountLabel.text = preModel.amount;
}

@end
